package com.hzw.saas.service.ds.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hzw.saas.api.ds.enums.ClientTypeEnum;
import com.hzw.saas.common.config.model.BaseLogicModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
    * 客户端在线等级信息表
    */
@ApiModel(value="客户端在线等级信息表")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper=true)
@TableName(value = "tb_online_level_info")
public class OnlineLevelInfo extends BaseLogicModel {
    private static final long serialVersionUID = -3250114645759629029L;
    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="用户id")
    private String userId;

    /**
     * 客户端类型 ds:Device Studio
     */
    @TableField(value = "client_type")
    @ApiModelProperty(value="客户端类型 ds:Device Studio")
    private ClientTypeEnum clientType;

    /**
     * 等级
     */
    @TableField(value = "`level`")
    @ApiModelProperty(value="等级")
    private Integer level;

    /**
     * 当前等级经验
     */
    @TableField(value = "level_current_ex")
    @ApiModelProperty(value="当前等级经验")
    private Integer levelCurrentEx;

    /**
     * 当前等级升级所需总经验
     */
    @TableField(value = "level_upgrade_ex")
    @ApiModelProperty(value="当前等级升级所需总经验")
    private Long levelUpgradeEx;

    /**
     * 总经验值
     */
    @TableField(value = "total_ex")
    @ApiModelProperty(value="总经验值")
    private Long totalEx;
}